function androidImageCode(cache) {
  let code = `
        <ImageView
            android:id="@+id/${cache.data.id}"
            android:layout_width="${unit(cache.data.width)}"
            android:layout_height="${unit(cache.data.height)}"`;

  if (cache.attrs) {
    for (var i = 0; i < cache.attrs.length; i++) {
      var attr = cache.attrs[i];
      code += attr + "\n";
    }
  }

  code += `
        />
    `;
  return code;
}
